package com.upcode.weighing.service.impl;


import com.upcode.weighing.domain.SysArea;
import com.upcode.weighing.mapper.SysAreaMapper;
import com.upcode.weighing.service.SysAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class SysAreaServiceImpl implements SysAreaService {

    @Autowired
    private SysAreaMapper sysAreaMapper;


    //新增区域
    @Transactional(readOnly = false,rollbackFor = Exception.class)
    @Override
    public int addArea(SysArea area) {
        return sysAreaMapper.addArea(area);
    }
}
